<script setup lang="ts">
const text = ref<string>("");
const msg = useState<string>("msg");

const handleSubmit = async () => {
  await $post("/bot/send-message", { text: text.value });
  msg.value = "发送成功";
  text.value = "";
};
</script>

<template>
  <PageTitle>通知设置</PageTitle>
  <Form @submit="handleSubmit">
    <FormInput label="消息" v-model="text" required />
  </Form>
</template>
